package com.ftg.wymall.admin.service;

import com.alibaba.fastjson2.JSONObject;
import com.ftg.wymall.admin.dto.UserInfo;
import com.ftg.wymall.admin.entity.UmsAdmin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ftg.wymall.admin.vo.UmsAdminVo;
import com.ftg.wymall.comm.vo.RespMessUtil;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 后台用户表 服务类
 * </p>
 *
 * @author kangjx
 * @since 2023-10-20
 */
public interface IUmsAdminService extends IService<UmsAdmin> {
    RespMessUtil<UmsAdminVo> login(UserInfo userinfo);

    RespMessUtil<Boolean> modifyUser(UmsAdmin id);

    RespMessUtil<JSONObject> uploadAvatar(Long id, MultipartFile avatarFile);
}
